public class Node {
    private int CPUTimeBegin, CPUTimeEnd, CPUTime;
    
    //This is the empty constructor for the basic node
    public Node() {
        this.CPUTime = 0;
        this.CPUTimeBegin = 0;
        this.CPUTimeEnd = 0;
    }
    public void setBeginTime(int begin){
      this.CPUTimeBegin = begin;
    }
    public void setTimeEnd(int end){
      this.CPUTimeEnd = end;
    }
    public int calcTime(){
      this.CPUTime = this.CPUTimeEnd - this.CPUTimeBegin;
      return CPUTime;
    }
}